#include "CBaseImpl.h"
#include <thread>
#include <chrono>

using namespace std::chrono_literals;
std::jthread g_thread;

CBaseImpl::CBaseImpl()
{
	g_thread = std::jthread(&CBaseImpl::OnFunc, this);
}

void CBaseImpl::Display()
{
	
}

void CBaseImpl::OnFunc()
{
	int a = 1, b = 2, c = 3;
	while (1)
	{
		std::this_thread::sleep_for(1s);
		OnStatus(a++, b++, c++);
	}
}
